package cn.idietrade.idietradeusermodule8004.service.impl;

import cn.idietrade.common.pojo.SecondConcern;
import cn.idietrade.idietradeusermodule8004.mapper.SecondConcernMapper;
import cn.idietrade.idietradeusermodule8004.service.SecondConcernService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class SecondConcernServiceImpl implements SecondConcernService {

    @Resource
    private SecondConcernMapper secondConcernMapper;

    @Override
    public List<SecondConcern> getSecondConcern(Integer userId) {

        return secondConcernMapper.getSecondConcern(userId);
    }

    @Override
    public Integer addConcern(SecondConcern concern) {
        return secondConcernMapper.addConcern(concern);
    }

    @Override
    public Integer delConcern(SecondConcern concern) {
        return secondConcernMapper.delConcern(concern);
    }
}
